package org.rency.common.memcache.support.annotation;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class MCacheDomain {

	private String cacheKey;
	
	private Object cacheData;
	
	/**
	 * 0 表示永久存储(默认是一个月),单位秒
	 */
	private int expireTime = 0;
	
	public String getCacheKey() {
		return cacheKey;
	}

	public void setCacheKey(String cacheKey) {
		this.cacheKey = cacheKey;
	}

	public Object getCacheData() {
		return cacheData;
	}

	public void setCacheData(Object cacheData) {
		this.cacheData = cacheData;
	}

	public int getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(int expireTime) {
		this.expireTime = expireTime;
	}
	
	@Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
	
}